select count(*) from $Tablename